package com.cxso.example.request.wlpt;

import com.cxso.example.domain.wlpt.owner.ApiOwnerAuthDomain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Setter
@Getter
@Schema(description = "创建货主")
public class ApiConsignorOwnerCreateReq extends ApiBaseReq {

    @Schema(description = "货主手机号")
    @Valid
    @NotBlank(message = "货主手机号不能为空")
    private String ownerPhone;

    @Schema(description = "货主认证信息")
    @Valid
    @NotNull(message = "货主认证信息不能为空")
    private ApiOwnerAuthDomain ownerAuthDomain;

}
